Force feedback system and actuator power management

ABSTRACT

A system and method for providing a tactile virtual reality to a user is present. The position and orientation of the user is utilized to generate a virtual reality force field. Forces are in turn generated on the user as a function of this force field. A six-axis manipulator is presented for providing a user interface to such a system. This manipulator provides a unique kinematic structure with two constant force springs which provide gravity compensation so that the manipulator effectively floats.

REFERENCE TO RELATED APPLICATIONS

This is a continuation of U.S. patent application Ser. No. 09/333,613, filed Jun. 15, 1999, now U.S. Pat. No. 6,104,158, which is a continuation of application Ser. No. 09/185,301, filed Nov. 3, 1998, now abandoned, which is a continuation of application Ser. No. 08/854,375, filed May 12, 1997, now U.S. Pat. No. 5,831,408, which is a continuation of application Ser. No. 08/543,606, filed Oct. 16, 1995, now U.S. Pat. No. 5,629,594, which is a continuation-in-part of U.S. patent application Ser. No. 08/257,070, filed Jun. 9, 1994, now U.S. Pat. No. 5,459,382, which is a divisional application of U.S. application Ser. No. 07/984,324, filed Dec. 2, 1992, now U.S. Pat. No. 5,389,865.

FIELD OF THE INVENTION

This invention relates to a method and system for implementing a tactile virtual reality environment, and a six-axis manipulator with force feedback defining an interface device therefor.

BACKGROUND OF THE INVENTION

In many applications it is desirable for a user to remotely control the operation of a slave device by means of a hand-controller—a device which senses the movement of a handle gripped by the user's hand and generates one or more control signals which, in turn, are used in directing the actuation of the slave device. Hand controllers are commonly used in applications where the user is necessarily in a location which is remote from the slave, for example, where the slave is in a hazardous environment, such as an environment where high levels of radiation are present. Hand controllers are also well suited for teleoperation in environments where direct viewing is limited. Examples include murky underwater environments with reduced light and obstructions such as underground excavation applications. To improve the sensitivity of the user to the slave's environment, a force-feedback system can be used to reflect the forces generated on the hand back to the user via the hand controller. For instance, if the slave unit impacts an object, the force of the impact is felt by the user's hand.

Force reflecting hand controllers for tele-operation are well known. Units which reflect the force sensed by a remote manipulator are.disclosed in U.S. Pat. Nos. 4,837,734 to Ichikawa et al., 4,853,874 to Iwamoto et al., 4,888,538 to Dimitrov et al., 4,893,981 and 5,018,922 to Yoshinada et al., 4,942,538 to Yuan et al., 5,004,391 to Burdea, and 5,053,975 to Tsuchihashi et al. These units use electrical force feedback, usually applied through an electric motor/gear drive, to present the forces sensed by a remote manipulator to the user.

FIG. 1 summarizes the basic operation of prior art devices. The position, velocity, and/or acceleration provided on a master hand controller 10 on a handle 12 by a user (not shown) is sensed and transmitted as a command by a controller 14 to move the slave device 16. .In turn, the actual position, velocity, and/or acceleration is read from the slave device 16 and is sent back by the controller 14 as a command to the master hand controller 10, providing the user with direct kinesthetic feedback from the remote device he is controlling.

To simplify control, many prior art devices are a kinematically similar replica of the remote device under control. This kinematic similarity reduces or eliminates the need for a computer controlled interface between the master hand controller unit and the remote slave device. This kinematic similarity requires a unique hand-controller for each unique slave device. Changes made to the kinematics of the slave device require similar changes to the controller.

Prior force reflecting hand controller configurations have used either counter weights or active compensation to remove friction and gravity effects from the controller handle. The use of counterweights increases the mass and moment of inertia of the system which, in turn, increases user reaction time due to the additional forces necessary to accelerate and decelerate the handle. Active gravity compensation increases the complexity of a system while simultaneously increasing the possibility of undesirable system instability.

Further, by reacting to remote forces present on a slave device, the prior art devices lack the capability of creating a three-dimensional tactile virtual reality environment whereby a user's actions and reactions are related to a simulated world such simulations of driving or flying functions, simulation of molecular force interactions, or simulations of surgical procedures. U.S. Pat. No. 5,044,956 to Behensky et al. discloses a system whereby a steering wheel is used to input positions to a simulation which in turns actuates the wheel in response to simulated artifacts. This system does not disclose or anticipate the simulation and coordination of the six-degrees of freedom required for the arbitrary positioning and orientation of solid objects. Similarly, prior art devices which simulate virtual reality by visual feedback to a user are not capable of accepting tactile inputs and providing tactile force feedback.

SUMMARY OF THE INVENTION

The present invention solves the problems of the prior art by providing a method and system for providing a tactile virtual reality in response to user position and orientation. The present invention further provides a universal device whose kinematics do not replicate any particular device it might control or simulate. A computer mediated control system is provided which transforms forces, torques, displacements, velocities, and accelerations measured by a simulated environment and applies them hand controller or vice versa. The present invention can effect and control the superposition of translational displacement with force application and angular displacement with torque, thus providing arbitrary, programmed application of forces, torques, and displacements to the user in any direction. This allows the device to be controlled by, and to control, external simulations or models as well as physical remote devices. The invention can also locally simulate virtual force fields generated from interaction with virtual surfaces and/or boundaries, can provide software programmed position, velocity, force, and acceleration limit stops, and can dynamically shift, rotate, or scale these virtual objects.

The present invention includes a manipulator for use as a user interface which has a specific joint configuration. This joint configuration yields a design which passively solves the problem of gravity compensation by two constant force springs. Friction in the manipulator is minimized through using a highly back-drivable low gear ratio drive system and high performance brushless DC motors. A general object of the present invention is to provide a tactile virtual reality in response to a user input. According to the present invention, an electric signal is generated for each of a plurality of degrees of freedom of the user as a function of the user position and orientation in three-dimensional space. At least one virtual reality force field is generated in response to the generated signals. A fourth signal is generated for each degree of freedom as a function of the force field, and a tactile force on the user is generated for each force. signal.

A further general object of the present invention is to provide a system for providing a tactile virtual reality in response to a user input. The system comprises a six-axis interface device having an actuator for each axis and a member movable by the user. The interface device is responsive to the position and orientation of the member to generate electrical signals representative of this position and orientation. Means are also provided f or generating at least one virtual reality force field responsive to the electric signals. In addition, means for generating a force signal for each axis are provided as a function of the force field wherein the actuators are responsive to their respective force signals to provide a force to each axis for creating the tactile virtual reality.

A specific object of the present invention is to provide a six-axis manipulator capable of assuming an arbitrary orientation and position in three-dimensional space for use as a user interface.

A further specific object of the present invention is to provide a six-axis manipulator for use as a user interface having a constant force spring for compensating for the force of gravity.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 presents the configuration of prior art hand controllers;

FIG. 2 presents a block diagram representation of the virtual reality system of the present invention;

FIG. 3 presents a flow chart representation of the method of the present invention;

FIG. 4 presents a block diagram representation of the six-axis tactile virtual reality system of the present invention;

FIG. 5a presents a front view of a six-axis embodiment of-the manipulator of the present invention;

FIG. 5b presents a top view of a six-axis embodiment of the manipulator of the present invention;

FIG. 5c presents a side view of a six-axis embodiment of the manipulator of the present invention;

FIG. 6a presents a top view of the X-portion of the X-Y table of an embodiment of the manipulator of the present invention;

FIG. 6b presents a side view of the X-portion of the X-Y table of an embodiment of the manipulator of the present invention;

FIG. 7a presents a top view of the Y-stage of the manipulator of an embodiment of the present invention;

FIG. 7b presents a side view of the Y-stage of the manipulator of an embodiment of the present invention;

FIG. 8a presents the front view of the Z-stage of the manipulator of an embodiment of the present invention;

FIG. 8b presents the top view of the Z-stage of the manipulator of an embodiment of the present invention;

FIG. 8c presents the side view of the Z-stage of the manipulator of an embodiment of the present invention;

FIG. 9a presents a top view of the off-stage of the manipulator of an embodiment of the present invention;

FIG. 9b presents the front view of the offstage of the manipulator of an embodiment of the present invention;

FIG. 10a presents a front view of the pitch-stage of the manipulator of an embodiment of the present invention;

FIG. 10b presents a side view of the pitch-stage of the manipulator of an embodiment of the present invention;

FIG. 11a presents a front view of the roll-stage of the manipulator of an embodiment of the present invention;

FIG. 11b presents a top view of the roll-stage of the manipulator of an embodiment of the present invention;

FIG. 12a presents a front view of the handle assembly of the manipulator of an embodiment of the present invention;

FIG. 12b presents a side view of the handle assembly of the manipulator of an embodiment of the present invention;

FIG. 13 presents a block diagram representation of the electronics module of an embodiment of the present invention;

FIG. 14 presents a software driver for an embodiment of the system of the present invention;

FIG. 15a presents a graphical two-dimensional representation of a detent of one embodiment of the present invention;

FIG. 15b presents a schematic representation of a spring system used in implementing a detent of one embodiment of the present invention; and

FIG. 16 represents a graphical representation of three axes of coordinate transformations for one embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIENT

The present invention is a system and method for presenting forces tq an operator of a remote device or to a user interacting with a virtual environment in multiple axes simultaneously mediated through a computer 15 controlled interface system. A block diagram of the system is shown in FIG. 2. A user 20 provides a position, velocity, and/or acceleration (to be referred to generally as “force”) to the user interface 22. The user interface generates an electrical signal for each of a plurality of degrees of freedom of the user corresponding to the motion of the user interface along, or about, the respective degree of freedom. These electrical signals are fed to a virtual reality force field generator 24 which calculates force field values for a selected force field. These force field values are fed to the force signal generator 26 which generates a force signal for each of the plurality of degrees of freedom of the user as a function of the generated force field. These motion commands are feedback to actuators of the user interface 22 which provide such force co the user interface and thus to the user in contact with the interface device. A flowchart of the method corresponding to this system is shown in FIG. 3 and referred to generally by reference numeral 30.

It should be noted that there are a variety of different ways that the user interface could be accomplished. This interface could read the position of a user's hand by means of a laser tracking system and feedback forces by urging the user's hand with jets of air. The interface could consist of a pedal responding to the position and orientation of the user's foot. In the preferred embodiment however, the user's hand will grip a handle on a user interface similar to a hand controller.

Turning now to FIG. 4, a six-axis tactile virtual reality system is presented. The position, velocity, and/or acceleration provided on a master hand controller 40 on handle 42 by a user (not shown) is sensed and transmitted as a command by controller 44 to the computer model or simulation 46 which implements a virtual reality force field. In turn, the force field value for the given position, velocity, and/or acceleration is sent back to the controller 44 which generates a force command to the master hand controller 40, providing the user with direct kinesthetic feedback from the virtual environment traversed.

The invention in its preferred embodiment is applicable to controlling a virtual or simulated environment. However, the invention is also well suited to the control of a remote or physical device. Further, the present invention is suited for application to any number of axes. For instance, a single roll axis could be used to implement a force reflecting steering wheel, a pitch and roll axis could be used to implement a two axis force reflecting joystick, or an X, Y, Z, yaw, pitch, and roll axis could be used to implement. an electrically actuated motion simulator. However, the preferred implementation chosen for description herein operates six-axis position, velocity and/or acceleration sensing and force effecting axes simultaneously.

Turning now to FIG. 5, a six-axis embodiment of the manipulator of the present invention is shown. The manipulator, referred to generally by reference numeral 50 is, in effect, a small back drivable robot which moves in 6 degrees of freedom, 3 linear positions (x, y, z) and 3 attitudes (roll, pitch, yaw).

FIG. 5a presents a front view of the manipulator, FIG. 5b presents a top view of the manipulator and FIG. 5c presents a side view of the manipulator. The manipulator levitates an aircraft-type sidearm-grip control stick (or handle) 52 which incorporates three queuing buttons 54, an analog trigger 56, and a palm-actuated deadman safety switch 58.

Force-feedback can be generated on each axis by the hand controller through 6 small, brushless, DC servo motors 60. The six axis force-reflection output and six axis orientation and position control makes the manipulation and “feeling” of multidimensional virtual objects extremely easy.

The kinematic arrangement of the invention is also shown in FIG. 5. The manipulator is arranged in a Cartesian coordinate system, and the degrees of freedom are denoted by an X-axis 62, a Y-axis 64, and a Z-axis 66 for translational motions, and yaw-axis 68, a pitch-axis 70, and a roll-axis 72 for the rotational motions. The axes of these six independent degrees of freedom intersect at a single point which has been located within the handle 52 at a point which is just below where the operator's second and third finger/knuckle rest on the handle. Locating the axes of motion in this way minimizes cross coupling between the degrees of freedom.

Referring again FIG. 3, the apparatus is attached to a work surface through the baseplate 74. The first two stages mounted up from the baseplate are a simple X-Y table driven by a rack and pinion, and held in place by two parallel rails or linear ways per stage. Because these axes work parallel to gravity, no compensation is required.

Referring to FIG. 6, FIG. 6a presents a top view of the X portion of the X-Y table and FIG. 6b presents a side view of the same. The X linear ways 80 and the X rack 82 are affixed to the baseplate 74. The X pinion 84 engages the rack 82 and is'directly coupled to the X motor 86. The motor is affixed to the X plate 88. The X plate 88 translates via recirculating ball bearings 90 along the linear way 80, and carries the plate, motor, and pinion through translation along the X-axis 62.

Y and Z translation stages are constructed in a similar fashion. FIG. 7a presents a top view of the Y-stage, and FIG. 7b presents a side view of the Y-stage. The Y-stage is affixed atop and carried by the X plate 88. This stage includes: the Y linear ways 100 and bearings 102, the Y rack 104, the Y pinion 106, the Y motor 108, and the Y plate 110 for translation along Y-axis 64.

Referring to FIG. 8, the Z-stage is shown. FIG. 8a presents the front view of the Z-stage, FIG. 8b presents the top view of the Z-stage and FIG. 8c presents the side view. The Z-stage is affixed atop and carried by the Y plate 110 using two Z platform supports 120. The Z-stage includes: the Z plate 122, the Z linear way 124, the Z rack 126, the Z pinion 128, the Z motor 130, the yaw plate 132, the Z bearings and the carriage 134, the Z levitating springs 136 and the spring spools 138. This axis levitates the yaw, pitch, and roll mechanisms, and the structures to which they attach. However, the Z motor and gear train themselves do not levitate thus saving additional weight. The Z stage is easily gravity compensated by two springs of sufficient length such that a given displacement is small in comparison to the length. Thus, the force applied is relatively constant with respect to displacement. The force of the springs is upward so as to compensate for the force of gravity. The spring constants for these springs are matched to the upper stage weight.

Attached to the Z plate 122 is the yaw stage. Referring to FIG. 9, the yaw stage is presented. FIG. 9a presents the top view of the yaw stage and FIG. 9b presents the front view of the yaw stage. The yaw stage is comprised of the yaw motor 140, which is coupled to the yaw gearbox 142 which contains a yaw spur gear 144 coupled to the yaw motor pinion 146. The output shaft 148 of gearbox 142 is affixed normal to the arm of yaw-pitch gimbal bracket 150. Because the yaw stage operates perpendicular to the Z plate and parallel to the baseplate, it does not need gravity compensation.

Referring to FIG. 10, the pitch stage is shown. FIG. 10a presents a front view of the pitch stage and FIG. 10b presents a side view of the pitch stage. The pitch stage is comprised of the pitch motor 160, which is coupled the pitch gearbox 162 affixed to the yaw-pitch bracket 150. The pitch gearbox includes a pitch spur gear 166 coupled to the pitch motor pinion 168. The output shaft of the gearbox is affixed normal to the vertical arm of the pitch-roll gimbal bracket 170. The weight of the roll axis and the pitch-roll gimbal is compensated by using a constantforce spring 172 with a spring spool 174. This does not provide perfect balance except at the equilibrium position. However, the small centering force is easily overpowered by the pitch motor gear train and holding friction.

Referring to Figure 11,the roll stage is shown. FIG. 11a presents a front view of the roll stage and FIG. 11b presents a top view of the roll 25 stage. The roll stage is comprised of the roll motor 180, which is coupled to the roll gearbox 182 affixed to the pitch-roll bracket 170. Roll gearbox contains a roll spur gear 184 coupled to the roll motor pinion 186. The output shaft of the gearbox is affixed normal to hand grip plate 188. This last stage is not compensated because the handle components are quite light and nearly balanced.

Referring to FIG. 12 the handle assembly is shown. FIG. 12a presents a front view of the handle assembly and FIG. 12b presents a side view of the handle assembly. The handle assembly is attached to the top surface of the hand grip plate 190 is the handle or hand grip 52, anatomically formed for either right of left hand usage, depending on the application. In addition, the entire hand grip is modular and can be conformed in a variety of sizes to meet the needs of a wide range of user hands.

Included as an integral part of the hand grip assembly are three switches 54, a trigger 56 which works through an L-shaped level to push a Linear Rheostat or an LVDT 192, and a palm grip 58 which works through depressing a limit switch 194. The switches 54 allow the operator to select software driver programmed modes of operation such as position, velocity, or force control, perform scaling between the hand grip motion and motion of the simulation, provide selection between one or more virtual reality force fields and/or selectively activate or deactivate particular joints of the hand controller.

The trigger grip provides a continuous change in resistive value as a function of depression or displacement, and can thus be used to actuate an end effector or other continuously controlled virtual mechanism.

The palm grip can be sensed as either pressed or not pressed, indicating whether the user has a firm grip of the handle assembly or not. Normally the software driver uses this switch to control hand controller safety functions—if it is not firmly pressed all active power to the hand controller actuators is interrupted. However, the switch can be sensed and decoded in the software driver as well.

All six axes of motion intersect at a point through the middle of the handle as previously discussed. This point is chosen to be the most comfortable pivot point for operation. other embodiments of the invention can use alternative switches or small handle mounted finger actuated controls and may be configured with fewer that six axes or with axes which do not intersect at a single point.

The preferred embodiment of the present invention, uses a computer mediated control system and software driver. An arbitrary mapping of position, velocity, acceleration, and force at the remote end (or within the virtual environment) can be presented to the operator (at the handle of the apparatus), and the position, velocity, acceleration, and force sensed at the handle or the apparatus can be arbitrarily mapped to an object within a remote or virtual environment. In the preferred embodiment the computer mediation is performed by a single computer and software driver, however, in other embodiments multiple computers can be used to enhance performance. In some embodiments the forces presented to a user can be generated through the sensing of actual forces from a remote device, through computation by an external model or simulation process, or through local computation with the apparatus control computer. This includes the functionality for presenting virtual force field objects and software programmed limits and stops to the user.

The preferred embodiment uses multiple back-drivable geared frameless brushless DC motors with rotational sensing to effect and control the superposition of translational displacement with force application and angular displacement with torque, thus providing arbitrary, programmed application of forces, torques, and displacements to the handle in any direction. Position sensing per axis is effected by using optical encoders. Velocity and acceleration estimates are made digitally from the sequence of positional measurements in the software driver. Force is set through current drive commands to the brushless DC motor drivers. These drivers set motor current using a pulse width modulation method and commutate motor phases using Hall effect switched circuits. Other embodiments may use alternative electrical actuators, translational or rotational transmissions, and/or alternative displacement/rocation measurement sensing methods.

The electronics module functionality is documented through description of FIG. 13. The module includes a computer 200 such as an IBM PC-AT or similar connected to a data bus 202. The computer implements a closed loop control system for the motors based upon the rotary position of each DC motor which can be sensed by a position encoder for each motor which can be mounted on each motor housing. The encoder output is made available to the computer controller through six encoder decoding channels 204. The computer synthesizes velocity and acceleration from periodic position readings. Each servo loop cycle computes new motor torque values derived from actually drive voltages for the PWM amplifiers 206. These programmed torque values are interfaced to the PWM amplifiers through six digital to analog interfaces 208.

A set of three Hall effect switches are provided for each motor. In alternative embodiments, brushless motor commutation can be accomplished using encoder position readings, however this makes mounting the encoder more difficult. A simpler approach is to use Hall effect switches which signal each phase change point. The PWM amplifiers in this input for commutation, or sinusoidal signals which could be generated from resolvers.

The computer itself requires a device (typically a magnetic storage device such as a floppy disk or a hard disk) from which to load the servo control code. In other embodiments this software driver code can be located in Read-Only Memory or Optical Memory. The computer may also require a monitor and a keyboard to display status and input command sequences.

Because a digitally controlled servo system such as that used here can be dangerous on power up when many circuits are in unknown states or when the software crashes, a safety deadman's circuit 210 has been included in the design. This circuit locks out all power to the amplifiers and motors unless a valid initialization sequence has been performed and the software servo loop is running correctly. It also shuts down power if the servo loop fails.

Because unknown conditions can arise either from the handle itself of from other external devices with safe shutdown subsystems, the deadman's circuit also can power down the manipulator on an externally signaled failure or if the operator releases his grip on the handle allowing the deadman's switch to be released.

The deadman's circuit works as follows. When the hand controller is powered up, the deadman circuit will be inactive until a valid servo control system is in operation, either—started by manual application start up or through the use of an automatic start-up command sequence initiated on computer interface system upon power-up.

When an active servo is established, a “Heart Beat” signal comprising an 37 Hz square wave (or faster) signal from analog to digital/digital to analog converter set 212 (ADC-DAC-1), is generated by the interrupt servo loop. This signal is required for power to be applied to the power amplifiers and therefore the motors. If a hardware or software “crash” occurs the “Heart Beat” will normally stop, cutting power to the power amplifiers and releasing actuation to the handle within {fraction (1/60)}th of a second.

The palm switch 56 must be depressed to power the motors under normal conditions. However, this switch can be overridden by setting the ADC-DAC-2 output to logical zero; this line is normally at logical one 25 after servo loop initialization. An external “conditional panic” switch can be connected which can also be overridden under software control by wiring it in parallel to the Deadman's handle switch.

An unconditional panic switch can be wired by connecting a switch from the ADC-DAC 1 output to signal ground. This switch will stop the “Heart Beat” signal and simulate the occurrence of a software/hardware failure—thus dropping power to the stick. The panic switch should be a push-type permanent contact type switch because power will return to the stick if the “panic” stop is removed.

The software driver functionality for the system is explained with reference to FIG. 14. A servo shell process begins by initializing the interrupt loop data structures and linkages. After this is completed, the interrupt process runs every clock interval to provide the servo routines with a deterministic time base. In the PC-AT version of the software driver, this clock interrupt is a re-programmed use of the system clock/timer. other embodiments using alternative control computer architectures can use alternative timing signals/mechanisms.

The user initializes the desired time interval for his servo loop-(shorter for crisper response—longer to accommodate longer interrupt processing loops) . The timer interrupt is skipped until enough ticks have been seen to represent this programmed interval. Then the interrupt level servo logic is executed.

If interrupt processing is skipped, control is immediately transferred to the system clock logic which either exits the interrupt or sends the execution flow into the operating system clock processing code (if {fraction (1/60)}th of a second has passed since the last time the 30 system clock code was executed). This system clock logic keeps the computer time of day correct and is required in many systems for proper operations of the floppy disks.

If the interrupt routine determines that it is time to run the servo code, it first checks (in the overrun logic) to see if a previous call to the servo routines is still being processed (this is done via interlocking flags). If the last loop has not yet completed, i.e. there are too many commands or controls to executed in the user programmed interrupt call-back period, an overrun is signaled, and the new interrupt is rejected until the old one is fully completed. Also, servo calculations compensate time normalization based on the overrun information—in effect, when overrun occurs, it is as though the clock interval has been doubled in duration.

When the servo loop begins to run, it first collects each encoder value, computes estimates for velocity and acceleration, and then computes an optional set of translations, scales, and rotations on the XYZ data and the pitch, roll, yaw data. This global transform allows the entire servo function space to be rotated, shifted, or scaled to create different force field “views”. This is analogous to changing the view port to a 3D model in model 3D graphics engines.

After preprocessing position data from the encoders, the servo loop enters a set of processing routines which iterates down a list of installed control functions and commands. A control is eligible for execution if the coordinates to be sent to it are inside of its bounding box. When a control function executes it reads its own local memory which can contain values sent in by the non-interrupt loop, a set of 6 coordinates, velocities, and accelerations, either untransformed or transformed, and computes a set of six torque contributions. The only difference between a control and command is that a control is expected to generate a force contribution, whereas a command is simply executed. Also commands can be flagged to run either before or after the list of controls.

The force contributions to the various axes are appropriately scaled and applied to a running sum of contributions (which are summed across multiple control function calls). When the control/command function lists are completed, the resulting final set of forces (or torques) become the values set into the output digital to analog interfaces.

After starting the interrupt “loop”, the foreground also establishes a loop. This loop consists of polling for input from the command serial port and output from the interrupt loop and processing these inputs and outputs if present. If serial input becomes available, it is read and decoded. For a typical master-slave protocol, the input will consist of slave positions or forces which are transformed from native slave coordinates to scaled master Cartesian coordinates and which are then used to update gains, center locations, or forces in one or more interrupt level servo functions create a force “feel”. The output from the loop will typically be center locations or offsets which are transformed back to slave coordinates and transmitted out of the serial port. Polling of the stick buttons, triggers, panic buttons, power supply level will also normally be performed as well.

Because the user actually installs pointers to his own control and/or command code, complete flexibility is available from the servo structure. Several different virtual controls are described below.

Detents

Consider trying to implement a “feel” which is similar to a spring loaded ball bearing falling into a dimple. This class of “feel” is adetent. A two dimensional representation of a detent is shown in FIG. 15a. Bounding box 220 has a center at coordinates (Xc, Yc) and is defined by

Xc−01<X<Xc+03

Yc−02<Y<Yc+04.

The detent computes and applies a force contribution, Fin/Fout, to the hand controller actuators only if the hand controller joint coordinates, X and Y, are within bounding box 220. If this is true, the force contribution is computed as a function of the distance, D, from the detent center, Xc, Yc. The distance is defined as:

D=Square Root((X−Xc)**2+(Y−Yc)**2)  [1]

For cases where D is larger that Rmax, the force contribution, Fin and Fout, are [0,0]. For cases where D is less that R, Fout is zero and Fin is computed as a force directed toward the center, Xc, Yc, from the current joint coordinates, X, Y. Thid computation is as follows:

Fin=[X−Xc Y−Yc]*(−kin D−velocity* din+Kin).

Where velocity is computed from successive D measurements (in turn, computed from successive joint coordinate values, X, and Y, through equation [1] above), kin is the inner radius, R, spring constant, din is the inner radius velocity damping factor, and Kin is the inner radius status force term.

For cases where D is less than Rmax but greater than R, Fin is zero and Fout is computed as a force directed away from the center Xc, Yc, starting at the current joint coordinates, X,Y. This computation is as follows:

Fout=[X−Xc Y−Yc]*(−kout*(Rmax−D)−velocity*dout+Kout)

Where velocity is computed from successive D measurements (in turn, computed from successive joint coordinate values, X, and Y, through equation [1] above), kout is the outer radius spring constant, dout is the outer radius velocity damping factor, and Kout is the outer radius static force term.

FIG. 15b shows the basis for the force contribution computation as a lumped parameter mechanical system composed of a damping cylinder with damping factor d, a spring with spring constant k, and a static force, K.

Note that higher dimensionality detents can also generate hyperplanes and hyperspheres by having fewer or more axes enter into the basic distance computations. “Inside out” or “half side” versions can be made by changing gain signs or setting some gains to zero. This formulation of the detent is a superset of the more familiar PID controller.

Edres/Position Limits

Because enforcement of software programmed limit stops is needed, and because there are often quite a few of them (12 per axis is typical), it is advantageous to reduce the computation of the previous example into a more efficient and degenerate form. This can be done by dropping out the appropriate terms leaving:

force=−k*(X−X_(L)) For an X Limit

force=−k*(Y−Y_(L)); For a Y Limit

force=−k*(Z−Z_(L)); For a Z Limit

where X_(L), Y_(L), and Z_(L) are limit stop locations.

Velocity Limits

The same idea can also generate a form which provides velocity damping only (or velocity limits if a non-linearity is introduced)

force=−velocity*d;

where d is the damping factor and velocity is computed from the difference between successive joint position measurements.

Power Management Considerations

In a force-reflecting device, it is desirable to have a device which is as “massless” as possible, so that the operator feels a force without any mass being associated with it. One technique to achieve more strength or power is to use gearing for leverage, but this approach is only effective to a certain extent because the more of that leverage you add, the less the device is capable of back drivability. In other words, the added strength results in more inertia by way of the drive stage in the motor, which is then amplified by the gear transmission. Another approach is to use high strength-to-weight actuators, which is best achieved by driving the motor at its peak performance. If this is done for an extended period of time, however, the motor will burn out. One solution is to cool down the motor, but the addition of a fan and related hardware adds power and expense not suited to lower-priced products. Whereas the various components may simply be oversized in an industrial robotics type application, adding mass in consumer-type environments may result is a large penalty.

It turns out in force reflecting applications that the maximum application of force required often is not necessary for prolonged periods. To a certain degree, such peak performance is only required when first touching the representation of an object, at which point it is common practice to “back off” from it anyway. To improve performance yet manage power, the system may take advantage of the fact that most motors have two ratings. One is a nominal consumption-type rating associated with average current during operation. This rating is also a direct function of the degree of heat dissipated by the motor in a steady-state sense; that is, how much heat the motor windings can endure before they start melting. Most motors also have a peak rating, however, which is much higher, often twice as high as the nominal. This value is related to how much power the unit can handle in an instantaneous sense, despite the amount of heat generated.

To at least momentarily operate in this peak torque mode, the average power requirements are monitored and integrated with respect to time in a background mode. In the event that this integral of power over time exceeds the average, the control system cuts back the peak power. Thus, according to one aspect of the invention, the system is capable of operating in peak mode, but with a “correction factor” in the event that the average power envelope over a predetermined time period has been exceeded. For example, this integral may be averaged over the last two seconds, more or less, depending upon the circumstance.

Transforms

The controller creates alternative transformed coordinates using homogeneous coordinate transformations. Transforming controls computation into a new coordinate frame also requires transformation of the partial force contributions back into the frame of the hand controller (so that they can be applied as joint forces and torques. This is done as shown in FIG. 16 (shown for three axes only).

As a way to place a detent at a new X,Y,Z of fset and a new orientation P,R,Y we can transform stick coordinates as follows before detent evaluation:

X′=S*[W]X+[X _(o)] and O′=[0]+[O ₀],

where W is a rotation matrix, X_(o) is a translation vector, S is a scale factor, and O_(o) is a pitch, roll, yaw offset. When detents are computed in this new coordinate system the resulting forces and torques, FX′, FY′, FZ′, must be reverse transformed into native coordinates prior to application. To translate the forces they are decomposed into their components in the original hand controller X, Y, and Z coordinate system and summed This can be done by applying the transform W to three unit vectors, ax=[1,0,0], ay=[0,1,0], az=[0,0,1], oriented along the hand controller coordinates, X, Y, and Z unit vector to get their forms, ax′, ay′, az′, in the transform space:

ax′=[W]ax, ay′=[W]ay, az′=[W]

Then force components can be computed in native hand controller space, FX, FY, FZ, by adding the dot products with ax′, ay′, and az′ as follows:

Fx=FX′•ax′+FY′•ax′+FZ′•ax′

FY=FX′•ay′+FY′•ay′+FZ′•ay′

FZ=FX′•az′+FY′•az′+FZ′•az′

To translate the torque we follow a similar procedure using a_(YG), a_(RG), and a_(PG), and TY, TR, and TP.

While the best mode for carrying out the inviention has been described in detail, those familiar with the art to which this invention relates will recognize various alternative designs and embodiments for practicing the invention as defined by the following claims. 

What is claimed is:
 1. A computer mediated control system for use in a force feedback system, said force feedback system including at least one actuator and at least one position sensor, said control system comprising: a memory storing at least one force feedback effect, said at least one force feedback effect providing forces to be output to a user of said force feedback system; and a computer mediated controller coupled to said at least one actuator and to said at least one position sensor, wherein said computer mediated controller receives input information through a communication port of said computer mediated controller and decodes commands from said input information, reads force values from said communication port, outputs output data on said communication port, said output data including position data from said at least one position sensor, determines at least one installed force feedback effect to contribute to output of said force feedback system, processes said stored force feedback effect to determine a force contribution from said force feedback effect, and outputs a force feedback value based on said determined force contribution to cause a force based on said force feedback value to be output by said actuator to the user of said force feedback system.
 2. A computer mediated control system as recited in claim 1, wherein said force feedback effect is one of a detent effect, a wall effect, and a spring effect.
 3. A computer mediated control system as recited in claim 1, wherein said force feedback effect includes at least one parameter, and wherein said at least one parameter is at least one of a stiffness parameter, a damping parameter, a force parameter, and a distance parameter.
 4. A computer mediated control system as recited in claim 1, wherein said force feedback value is a result of summing force contributions from a plurality of installed force feedback effects.
 5. A computer mediated control system as recited in claim 1, wherein pointers are provided by a user of said force feedback system to install desired force feedback effects to contribute to said output force feedback value.
 6. A computer mediated control system as recited in claim 1, further comprising computing velocity from said position data received from said at least one position sensor and using said velocity in said determination of said force contribution.
 7. A computer mediated control system as recited in claim 1, wherein said force feedback effect contributes to said output force feedback value as a result of a user manipulatable member being moved by a user to enter a boundary of said force feedback effect as determined by said position data.
 8. A computer mediated control system as recited in claim 7, wherein said output data includes button press data from at least one button provided on said user manipulatable member of said force feedback system.
 9. A force feedback device, comprising: a user manipulatable member having at least one degree of freedom of motion and being manipulatable by a user physically contacting said member; at least one actuator outputting forces to said user; at least one position sensor for determining a position of said user manipulatable member in said at least one degree of freedom; and a computer mediated controller coupled to said actuator and to said at least one position sensor, wherein said controller receives input information through a communication port of said computer mediated controller and decodes commands from said input information, reads force values from said communication port, outputs output data on said communication port, said output data including position data from said position sensor, determines at least one installed force feedback effect to contribute to output of said force feedback system, processes said installed force feedback effect to determine a force contribution from said installed force feedback effect, and outputs a force feedback value based on said determined force contribution to cause a force based on said force feedback value to be output by said actuator to the user of said force feedback system.
 10. A force feedback device as recited in claim 9, wherein said user manipulatable member is a joystick.
 11. A force feedback device as recited in claim 9, further comprising a deadman switch for disabling said output forces when said user is not manipulating said member.
 12. A force feedback device as recited in claim 9, further comprising a gear transmission provided between said member and said plurality of actuators, said gear transmission transmitting said output forces from said actuators to said member.
 13. A force feedback device as recited in claim 9, wherein a memory is accessible to said controller.
 14. A force feedback device as recited in claim 13, wherein said memory is non-volatile memory.
 15. A force feedback device as recited in claim 9, wherein said force feedback effects include at least one of a detent, a wall, and a spring.
 16. A force feedback device as recited in claim 9, wherein each of said force feedback effects includes at least one parameter, and wherein said at least one parameter is at least one of a stiffness parameter, a damping parameter, a force parameter, and a distance parameter.
 17. A method for providing output force from an actuator in a force feedback device, the method comprising: outputting a maximum peak force from an actuator on a user manipulatable object of said force feedback device, wherein a user can manipulate said user manipulatable object in a degree of freedom, and wherein said maximum peak force is related to a maximum power that said actuator can utilize instantaneously; and reducing said output of said maximum peak force to an output of a nominal peak force from said actuator when said power utilized by said actuator exceeds an average power level over a predetermined period of time, wherein said nominal peak force is related to a maximum power that said actuator can utilize in continuous steady-state operation.
 18. A method as recited in claim 17, wherein said maximum peak force is output only when said user initially moves said user manipulatable object into an object simulated by a computer system.
 19. A method as recited in claim 17, wherein said maximum peak force has about twice as great a magnitude as said nominal peak force.
 20. A method as recited in claim 17, wherein said nominal peak force is associated with an average current during operation of said actuator.
 21. A method as recited in claim 17, further comprising monitoring average power requirements of said actuator over time to determine when said power utilized by said actuator exceeds said average power level over said predetermined period of time.
 22. A method as recited in claim 17, wherein said predetermined period of time is about two seconds.
 23. A force feedback device that interfaces with a computer graphical simulation, said force feedback device comprising: a user manipulatable object moveable by a user in at least one degree of freedom; at least one sensor that detects a position or motion of said user manipulatable object in the at least one degree of freedom; and at least one actuator outputting a force on the user manipulatable object, the at least one actuator outputting a maximum peak force on the user manipulatable object, wherein the peak force is related to a maximum power that the at least one actuator can utilize instantaneously, and wherein the maximum peak force is reduced to a nominal peak force by the actuator when the power utilized by the actuator exceeds an average power level over a predetermined period of time, wherein the nominal peak force is related to a maximum power that the actuator can utilize in continuous steady-state operation.
 24. A force feedback device as recited in claim 23, wherein the maximum peak force is output only when the user initially moves the user manipulatable object into an object simulated in the computer graphical simulation.
 25. A force feedback device as recited in claim 23, wherein the maximum peak force has about twice as great a magnitude as the nominal peak force.
 26. A force feedback device as recited in claim 23, wherein the predetermined period of time is about two seconds.
 27. A force feedback device as recited in claim 23, wherein the user manipulatable object is a joystick.
 28. A system comprising: a force-feedback actuator coupled to a manipulandum; a position sensor coupled to said manipulandum; a memory comprising a stored force feedback effect; and a controller coupled to said force-feedback actuator, said position sensor, and said memory, wherein said controller is operable to: calculate a force feedback effect to contribute to output of said force feedback actuator, wherein said force feedback effect comprises a force feedback effect type and a magnitude.
 29. A system as recited in claim 28, wherein said force feedback effect comprises an effect selected from the group consisting of a detent effect, a wall effect, and a spring effect.
 30. A system as recited in claim 28, wherein said controller is further operable to utilize a plurality of pointers to determine the force feedback effect to contribute to said output force feedback value.
 31. A system as recited in claim 28, wherein said controller is further operable to: compute a manipulandum velocity from said position data; and incorporate said velocity in said determination of said force contribution.
 32. A system as recited in claim 28, further comprising a stored representation of a boundary, wherein said determination of said force contribution utilizes said stored representation of said boundary and said position data.
 33. A system as recited in claim 28, further comprising a button coupled to said manipulandum and said controller.
 34. A system as recited in claim 28, wherein said controller is further operable to output a force feedback value based on said determined force contribution to said force feedback actuator.
 35. A system as recited in claim 34, wherein said memory comprises a plurality of stored force feedback effects and said force feedback value comprises the sum of force contributions from said plurality of stored force feedback effects.
 36. A system as recited in claim 28, wherein said controller is further operable to: receive input information through a communication port of said controller and decodes commands from said input information, read force values from said communication port, and output data on said communication port, said output data including position data from said position sensor.
 37. A system comprising: a force-feedback actuator coupled to a manipulandum; a position sensor coupled to said manipulandum; a memory comprising a stored force feedback effect; and a controller coupled to said force-feedback actuator, said position sensor, and said memory, wherein said controller is operable to: determine a force feedback effect to contribute to output of said force feedback actuator, wherein said force feedback effect comprises a force feedback effect type and a magnitude, and wherein said force feedback effect comprises an attribute selected from the group consisting of a stiffness attribute, a damping attribute, a force attribute, and a distance attribute.
 38. A device comprising: a manipulandum having at least one degree of freedom; an actuator coupled to said manipulandum; a position sensor for determining a position of said manipulandum in said at least one degree of freedom; and a controller coupled to said actuator and to said position sensor, wherein said controller is operable to: determine at least one stored force feedback effect to contribute to output of said force feedback system, wherein said force feedback effect comprises a force feedback effect type and a magnitude.
 39. A device as recited in claim 38, wherein said manipulandum comprises a joystick.
 40. A device as recited in claim 38, further comprising a gear transmission coupled between said manipulandum and said actuator, said gear transmission configured to transmit an output force from said actuator to said manipulandum.
 41. A device as recited in claim 38, further comprising a memory coupled to said computer-mediated controller.
 42. A device as recited in claim 41, wherein said memory comprises non-volatile memory.
 43. A device as recited in claim 38, wherein said stored force feedback effect comprises at least one of a detent, a wall, and a spring.
 44. A device as recited in claim 38, wherein said controller is further operable to output a force feedback value based on said determined force contribution to cause a force based on said force feedback value to be output by said actuator.
 45. A device as recited in claim 38, wherein said controller is further operable to: receive input information through a communication port of said controller and decodes commands from said input information, read force values from said communication port, and output data on said communication port, said output data including position data from said position sensor.
 46. A device comprising: a manipulandum having at least one degree of freedom; an actuator coupled to said manipulandum; a position sensor for determining a position of said manipulandum in said at least one degree of freedom; a controller coupled to said actuator and to said position sensor, wherein said controller is operable to: determine at least one stored force feedback effect to contribute to output of said force feedback system, wherein said force feedback effect comprises a force feedback effect type and a magnitude, and a deadman switch for disabling said output forces.
 47. A device comprising: a manipulandum having at least one degree of freedom; an actuator coupled to said manipulandum; a position sensor for determining a position of said manipulandum in said at least one decree of freedom; and a controller coupled to said actuator and to said position sensor, wherein said controller is operable to: determine at least one stored force feedback effect to contribute to output of said force feedback system, wherein said force feedback effect comprises a force feedback effect type and a magnitude, and wherein said force feedback effect comprises an attribute, selected from group consisting of a stiffness attribute, a damping attribute, a force attribute, and a distance attribute.
 48. A method for providing haptic feedback, comprising: outputting a maximum peak force from an actuator to a manipulandum of a force feedback device, wherein said manipulandum comprises at least one degree of freedom, and wherein said maximum peak force is related to a maximum power that said actuator can utilize instantaneously; and reducing said output of said maximum peak force to an output of a nominal peak force from said actuator when said power utilized by said actuator exceeds an average power level over a predetermined period of time, wherein said nominal peak force is related to a maximum power that said actuator can utilize in continuous steady-state operation.
 49. A method as recited in claim 48, wherein said maximum peak force is output only during an initial movement of said manipulandum corresponding to entry into an object simulated by a computer system.
 50. A method as recited in claim 48, wherein said maximum peak force comprises about twice as great a magnitude as said nominal peak force.
 51. A method as recited in claim 48, wherein said nominal peak force is associated with an average current during operation of said actuator.
 52. A method as recited in claim 48, further comprising monitoring average power requirements of said actuator over time to determine when said power utilized by said actuator exceeds said average power level over said predetermined period of time.
 53. A method as recited in claim 48, wherein said predetermined period of time comprises about two seconds.
 54. A device comprising: a manipulandum moveable in at least one degree of freedom; a position sensor coupled to said manipulandum, said position sensor operable to detect a position of said manipulandum at least one degree of freedom; and an actuator coupled to said manipulandum, said actuator operable to output a maximum peak force on said manipulandum, wherein said maximum peak force is related to a maximum power that said actuator can utilize instantaneously, and wherein said maximum peak force is reduced to a nominal peak force by said actuator when the power utilized by the actuator exceeds an average power level over a predetermined period of time, and wherein a nominal peak force is related to a maximum power that said actuator can utilize in continuous steady-state operation.
 55. A device as recited in claim 54, wherein said maximum peak force is output only during an initial movement of said manipulandum into an object simulated in the computer graphical simulation.
 56. A device as recited in claim 54, wherein said maximum peak force has about twice as great a magnitude as said nominal peak force.
 57. A device as recited in claim 54, wherein said predetermined period of time comprises about two seconds.
 58. A device as recited in claim 54, wherein said manipulandum comprises a joystick. 